import request from "@/utils/request";

// 查询函数模板列表
export function listFnTemplate(query) {
  return request({
    url: "/service-ry/system/fnTemplate/list",
    method: "get",
    params: query,
  });
}

// 查询函数模板详细
export function getFnTemplate(id) {
  return request({
    url: "/service-ry/system/fnTemplate/" + id,
    method: "get",
  });
}

// 新增函数模板
export function addFnTemplate(data) {
  return request({
    url: "/service-ry/system/fnTemplate",
    method: "post",
    data: data,
  });
}

// 修改函数模板
export function updateFnTemplate(data) {
  return request({
    url: "/service-ry/system/fnTemplate",
    method: "put",
    data: data,
  });
}

// 删除函数模板
export function delFnTemplate(id) {
  return request({
    url: "/service-ry/system/fnTemplate/" + id,
    method: "delete",
  });
}

// 导出函数模板
export function exportFnTemplate(query) {
  return request({
    url: "/service-ry/system/fnTemplate/export",
    method: "get",
    params: query,
  });
}
